const { BrowserType } = require("playwright");

async function main(browser, profileId) {
    const _now = "" + Date.now();
    const [page] = browser.contexts()[0].pages();
    await page.goto("https://nstbrowser.io");
    const screenshot = await page.screenshot({
        path: `example-` + _now + `.png`,
        fullPage: false,
    });
    // await page.waitForTimeout(30000);
    await page.close();
}

module.exports = {
    main,
};
